package com.fas.hehe.config.validator;

import com.fas.core.BaseValidator;
import com.jfinal.core.Controller;
import com.jfinal.ext.render.CaptchaRender;
import com.mysql.jdbc.StringUtils;

public class DictionaryValidator extends BaseValidator {

        protected void validate(Controller c) {
                setShortCircuit(false);//是否单个校验
                
                validateRequired("dictName", "userAccountMsg", "请您输入用户名!");
                validateRequired("pid", "userPasswordMsg", "请您输入密码!");
        }

        /**
         * 校验失败处理
         */
        protected void handleError(Controller c) {
                c.keepPara();
                c.render("/page/login.jsp");
        }
}
